package org.example.zrccddllljh.Pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Doctor {
        private Integer id;
        @NonNull
        private String name;
        private Integer age;
        private String department;
        private  Integer number;
        private  String state;
        @JsonFormat(pattern = "YYYY-MM-dd  HH:mm:ss")
        private LocalDateTime createTime;
        @JsonFormat(pattern = "YYYY-MM-dd  HH:mm:ss")
        private LocalDateTime updateTime;
    {
        number =5;
        state ="可预约";
    }


}
